﻿using System.Text.RegularExpressions;

namespace SchemaGen
{
    internal static class Globals
    {
        public const char SEGMENT_DELIMITER_CHAR = '.';
        public static readonly char[] SEGMENT_DELIMITER = { SEGMENT_DELIMITER_CHAR };

        /// <remarks>Need a better expression. This just checks if it starts with a valid character.</remarks>
        public static readonly Regex XML_NAME_REGEX = new Regex(@"^(?!(?i)(xml|[_\d\W]))[^ ]+$");
    }
}
